# -*- coding: utf-8 -*-
"""
Spyder Editor

This is a temporary script file.
"""
years = [(2006,57),(2007,56),(2008,57),(2009,62),(2010,69),(2001,72),(2012,75),(2013,76),(2014,74.3),(2015,74)]
rates = [item[1] for item in years]
avg = sum(rates)/len(rates)
print("平均录取率 {:.2f}%".format(avg))

topYear = years[rates.index(max(rates))]
print("录取率最高的年份 {},录取率 {}%.".format(topYear[0],topYear[1]))
